package com.swingson.easydrag.listeners;

import java.awt.Component;
import java.awt.dnd.DragGestureEvent;
import javax.swing.JComponent;

/**
 * Dragged Listener that retrieves the object that is going to be dragged.
 * 
 * @author Mohamed Mansour
 */
public abstract class DragListener {
  /**
   * Contents of the dragged object.
   * 
   * @param de
   * @return
   */
  public abstract Object getObject(DragGestureEvent de);
  
  public void dragComplete(Component source, Component dest, Object data){}
}
